<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>接送机包车系数发布</title>
	<meta name="decorator" content="default"/>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/rentproduct/tRentgroup/discountlist">接送机包车系数列表</a></li>
		<li class="active">
			<a href="${ctx}/rentproduct/tRentgroup/discountform?discountid=${tDiscountFactor.discountid}">接送机包车系数<shiro:hasPermission name="rentproduct:tRentgroup:edit">${not empty tDiscountFactor.discountid?'修改':'添加'}</shiro:hasPermission></a>
		</li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="tDiscountFactor" action="${ctx}/rentproduct/tRentgroup/discountsave" method="post" class="form-horizontal">
		<form:hidden path="discountid"/>
		<sys:message content="${message}"/>	
		<div class="control-group">
			<label class="control-label">归属公司</label>
			<div class="controls">
			    <form:hidden path="officeid"/>
				 <form:input path="officename" htmlEscape="false" maxlength="50" readonly="true" class="span4 required"/> 
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">50公里以内</label>
			<div class="controls">
			<input id="discountList0" name="discountList[0].id"  class="span4 required" />
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">50-150公里</label>
			<div class="controls">
				<input id="discountList1" name="discountList[1].id"  class="span4 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">150-275公里</label>
			<div class="controls">
				<input id="discountList2" name="discountList[2].id"  class="span4 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>	
          <div class="control-group">
			<label class="control-label">275-500公里</label>
			<div class="controls">
			<input id="discountList3" name="discountList[3].id"  class="span4 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>	
          <div class="control-group">
			<label class="control-label">500公里以上</label>
			<div class="controls">
			<input id="discountList3" name="discountList[4].id"  class="span4 required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>	
		<div class="form-actions">
			<shiro:hasPermission name="rentproduct:tRentgroup:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<button class="btn" type="button" onclick="history.go(-1)">返回</button>
		</div>
	</form:form>
</body>
</html>